package stringss;

public class email {
	public static void main(String[] args){
		String[] s1={"abc123@gmail.com",
					  "nanda@gmail.com",
					  "psr123@yahoo.com",
					  "sandy212@gmail.com",
					  "genni@yahoo.co.in"};
		boolean s2;
		for(int i=0;i<s1.length;i++)
		{
			if(s2=s1[i].endsWith("gmail.com"))
			{
			System.out.println(s1[i]);
			}
		}
		
		
	}

}
